﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace GestionIncidencias.Models
{
    public class Caso
    {
        [Required(ErrorMessage = "El NroTicket es requerido")]
        [Display(Name = "NroTicket", Description = "NroTicket")]
        public int NroTicket { get; set; }

        [Required(ErrorMessage = "El Cliente es requerido")]
        [Display(Name = "Cliente", Description = "Cliente")]
        public Cliente Cliente { get; set; }

        [Required(ErrorMessage = "El Servicio es requerido")]
        [Display(Name = "Servicio", Description = "Servicio")]
        public Servicio  Servicio { get; set; }

        [Required(ErrorMessage = "El Tipo es requerido")]
        [Display(Name = "Tipo", Description = "Tipo")]
        public string Tipo { get; set; }

        [Required(ErrorMessage = "El Estado es requerido")]
        [Display(Name = "Estado", Description = "Estado")]
        public string Estado { get; set; }

        [Required(ErrorMessage = "El Tecnico es requerido")]
        [Display(Name = "Tecnico", Description = "Tecnico")]
        public Tecnico Tecnico { get; set; }

        [Required(ErrorMessage = "La Fecha de Ticket es requerida")]
        [Display(Name = "FechaTicket", Description = "FechaTicket")]
        public DateTime FechaTicket { get; set; }

        [Required(ErrorMessage = "La Fecah de Cierre es requerida")]
        [Display(Name = "FechaCierre", Description = "FechaCierre")]
        public DateTime FechaCierre { get; set; }

        [Required(ErrorMessage = "La Solucion es requerida")]
        [Display(Name = "Solucion", Description = "Solucion")]
        public string Solucion { get; set; }

        [Required(ErrorMessage = "La Descripcion es requerida")]
        [Display(Name = "Descripcion", Description = "Descripcion")]
        public string Descripcion { get; set; }

        [Required(ErrorMessage = "La Evaluacion es requerida")]
        [Display(Name = "Evaluacion", Description = "Evaluacion")]
        public string Evaluacion { get; set; }

        [Required(ErrorMessage = "El Comentario de Solucion es requerido")]
        [Display(Name = "ComentarioSolucion", Description = "ComentarioSolucion")]
        public string ComentarioSolucion { get; set; }
    }
}